package com.jade.zsy.sales.facade.impl;

import com.jade.bss.base.utils.CopyBean;
import com.jade.bss.db.impl.BaseFacadeImpl;
import com.jade.zsy.sal.enity.SODetail;
import com.jade.zsy.sal.service.SODetailFacade;
import com.jade.zsy.sal.vo.SODetailVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Adminstrator on 2017/6/25.
 */
public class SodetailFacadeImpl extends BaseFacadeImpl implements SODetailFacade {

    @Autowired
    private SODetailFacade soDetailFacade;

    @Transactional
    public void save(SODetailVo vo)throws Exception{
        SODetail soDetail = CopyBean.copy(vo, SODetail.class);
        this.save(soDetail);
    }
}
